package com.zyz.A_程序基础.B_运算.浮点数;

/**
 * @author: vick
 * @Date: 2025/3/10
 * @Description:
 * @version: 1.0
 */
public class Demo2 {
    public static void main(String[] args) {

        //int a1 = 1/0;  //报错
        double d1 = 0.0/0; //NAN ==> not a number
        double d2 = 1.0/0; //Infinity
        double d3 = -1.0/0; //-Infinity

        System.out.println(d1); //NAN ==> not a number
        System.out.println(d2); //Infinity
        System.out.println(d3); //-Infinity
    }
}
